import api from '@/api/index'
import config from "@/config"

const modelPre = "activity-common";

export const processDefinitionList = (processDefinition) => {
	const url = `${config.pre}/${modelPre}/processDefinition/list`
	return api.get(url, processDefinition)
}

//查询该部门下有多少审批流
export const listByOrgId = (supplierId) => {
	const url = `${config.pre}/${modelPre}/processDefinition/listBySupplierId?supplierId=${supplierId}`
	return api.get(url)
}